package com.demo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author lc
 * @date 2020/12/3
 * @description yml配置
 */
@ConfigurationProperties("jedis")
@Getter
@Setter
@ToString
public class Yaml {
    /** 配置redis主机,默认localhost */
    private String host;

    /** 配置redis端口,默认6379 */
    private Integer port = 6379;

    /** 用户名 **/
    private String user;

    /** 用户密码 **/
    private String password;

    /** 配置redis集群节点示例, ip1:port,ip2:port,ip3:port */
    private String nodes;
}

